Summary of Units
Data Size
Bit
Although the English world contains a word 'bit', but the word 'bit' in computer world is binary digit
bit ,比特,the most basic unit of information,之所以是 information,除了计算机中的 0/1 还有 t/f, y/n 等,一位二进制即是 1 bit,缩写为 b
Byte
Byte - Wikipedia
byte,字节,the smallest addressable unit of memory in many computer architectures,当下很多不深入的文章会直接给出 1 byte 等于 8 bits,虽然一般情况确实如此,但是 byte 最直接的定义是等于 the number of bits used to encode a single character of text,即一个字符,缩写为 B。
Multiple-
Binary Prefixes: What are Kibi, Mebi, Gibi, Tebi, Pebi and Exbi?
Byte#Multiple-byte_units - Wikipedia
decimal (power of 10): K kilo-、M mega-、G giga-
binary (power of 2): Ki kibi-、Mi mebi-、Gi gibi-
KB、MB、GB
在早期,1998 年之前, 1KB=
KiB、MiB、GiB
为了解决上面的混乱,在 1998 年引入了新的前缀 kibi (kilobinary), mebi (megabinary), and gibi (gigabinary),因此在专业性较强的环境应该使用该术语。所以购买硬盘遇到的虚标问题,应该算是厂家的取巧行为。
一个问题,为什么不用十进制来统计 bit 和 byte ,因为计算机的计数、运算是基于二进制,直接的计算就是最方便的计算。
Data Rate
传输速度的单位为比特率,bit per second,标准符号为 bit/s,常用表示为 bps,同时 Kbit/s、Kibit/s 也和上面提过的一样。
Multimedia
Audio
bit rate = sample rate * bit depth * channels
Audio Info: 48KHz, Stereo, 256Kbps
bit depth 约为 2.67
Video
bit rate = width × height × frame rate × bit depth × compression ratio
Video Info: 1920x1080, 60FPS
一秒 2,073,600 × 60 像素,再通过颜色位深和压缩率(H.264 为 1:50 - 1:500)计算。
Hz 只有这一种写法,
k 小写是因为还有一个大写的开尔文,K
也可以认为是大数和小数 10³。